package com.freen.fadmin.repository.sysuser;

import com.freen.fadmin.entity.sysuser.SysRole;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysRoleRepository extends JpaRepository<SysRole,Integer> {
    SysRole findByRole(String role);
    SysRole findById(int id);
    Page<SysRole> findByCnnameLikeOrRoleLike(String cnname, String role, Pageable pageable);
}
